﻿using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class ScoreNumText : MonoBehaviour {

    public Text text1;
    public Text text2;
    public int index;

    public void SetTextValue(int num)
    {
        if (num < 10)
        {
            text1.text = "0";
            text2.text = num.ToString();
        }
        else
        {
            text1.text = (num / 10).ToString();
            text2.text = (num % 10).ToString();
        }
    }
}
